import * as types from '../../../../src/container/weather/constant'
import { weatherConditionMock } from './index.js'

export const displayWeatherConditionActionMock = {
  type: types.FETCH_WEATHER_CONDITION,
  url: 'http://api.openweathermap.org/data/2.5/weather?q=Hangzhou&apikey=15769c3c6d51ee0c350c9a12e05e587e&units=metric',
  data: weatherConditionMock
}

export const displayWeatherConditionErrorActionMock = {
  type: types.FETCH_WEATHER_CONDITION,
  url: 'http://api.openweathermap.org/data/2.5/weather?q=Hangzhou&apikey=15769c3c6d51ee0c350c9a12e05e587e&units=metric',
  error: {
    code: 1
  }
}
